﻿using KalevaAalto.DataPart.Excel.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KalevaAalto.DataPart.Excel.Error
{
    public class WorksheetError : Exception
    {
        private BaseWorksheet _worksheet;
        private string _info;
        public WorksheetError(BaseWorksheet worksheet, string info)
        {
            _worksheet = worksheet;
            _info = info;
        }

        public BaseWorksheet Worksheet => _worksheet;
        public string Info => _info;

        public override string Message => $"工作表“{Worksheet.Name}”出现错误：{Info}";


    }
}
